cc = gcc
CFLAGS = -g

.PHONY: all

all: test test14x4 test8x8

test: Conv14x4.o Conv8x8.o test.c
	$(cc) test.c Conv14x4.o Conv8x8.o -o test $(CFLAGS)
test14x4: Conv14x4.o test14x4.c
	$(cc) test14x4.c Conv14x4.o -o test14x4 $(CFLAGS)
test8x8: Conv8x8.o test8x8.c
	$(cc) test8x8.c Conv8x8.o -o test8x8 $(CFLAGS)
Conv14x4.o: Conv14x4.s
	$(cc) -c Conv14x4.s $(CFLAGS)
Conv8x8.o: Conv8x8.s
	$(cc) -c Conv8x8.s $(CFLAGS)

.PHONY: clean
clean:
	rm -rf *.o test test14x4 test8x8
